package cn.sciento.boot.tenant.aspect.aop;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;

/**

 */
public class TenantUpdateAdvisor extends AbstractPointcutAdvisor {
  private TenantUpdateAdvice tenantUpdateAdvice;
  
  private TenantUpdatePointcut tenantUpdatePointcut;
  
  public TenantUpdateAdvisor(TenantUpdateAdvice tenantUpdateAdvice, TenantUpdatePointcut tenantUpdatePointcut) {
    this.tenantUpdateAdvice = tenantUpdateAdvice;
    this.tenantUpdatePointcut = tenantUpdatePointcut;
  }
  
  @Override
  public Pointcut getPointcut() {
    return this.tenantUpdatePointcut;
  }
  
  @Override
  public Advice getAdvice() {
    return this.tenantUpdateAdvice;
  }
}
